package skipManage

import (
	"main/src/utils"
	"time"
)

var SkipRoute = utils.Routes{
	BaseUrl: "skip",
	Routes: []*utils.Route{
		{
			Path:   "/get",
			Method: "POST",
			View:   GetSkip,
			Body: GetSkipDto{
				GetDataLimitDto: utils.GetDataLimitDto{
					PageNum:  0,
					PageSize: 0,
				},
				Cat: "",
			},
			ResponseJson: utils.GetDataLimitResponseDto{
				Total:        0,
				Page:         0,
				NextPage:     0,
				PreviousPage: 0,
				Data: []SkipInfoResponseDto{
					{
						Id:        0,
						Cat:       0,
						URL:       "",
						CreatedAt: time.Time{},
						UpdatedAt: time.Time{},
					},
				},
			},
		},
		{
			Path:   "/create",
			Method: "POST",
			View:   CreateSkip,
			Body: CreateSkipDto{
				Cat: 0,
				URL: "",
			},
			ResponseJson: SkipInfoResponseDto{
				Id:        0,
				Cat:       0,
				URL:       "",
				CreatedAt: time.Time{},
				UpdatedAt: time.Time{},
			},
		},
		{
			Path:   "/update",
			Method: "POST",
			View:   UpdateSkip,
			Body: UpdateSkipDto{
				Id:  0,
				Cat: "",
				URL: "",
			},
			ResponseJson: SkipInfoResponseDto{
				Id:        0,
				Cat:       0,
				URL:       "",
				CreatedAt: time.Time{},
				UpdatedAt: time.Time{},
			},
		},
		{
			Path:         "/delete",
			Method:       "POST",
			View:         DeleteSkip,
			Body:         DeleteSkipDto{Id: 0},
			ResponseJson: nil,
		},
		{
			Path:   "/export",
			Method: "POST",
			View:   ExportFileBySkipView,
			Body: ExportFileBySkip{
				File: nil,
				Cat:  0,
			},
			ResponseJson: []SkipInfoResponseDto{
				{
					Id:        0,
					URL:       "",
					Cat:       0,
					CreatedAt: time.Time{},
					UpdatedAt: time.Time{},
				},
			},
		},
	},
}

var CatRoute = utils.Routes{
	BaseUrl: "cat",
	Routes: []*utils.Route{
		{
			Path:   "/get",
			Method: "POST",
			View:   GetCat,
			Body: GetCatDto{
				GetDataLimitDto: utils.GetDataLimitDto{
					PageNum:  0,
					PageSize: 0,
				},
				Name: "",
			},
			ResponseJson: utils.GetDataLimitResponseDto{
				Total:        0,
				Page:         0,
				NextPage:     0,
				PreviousPage: 0,
				Data: []CatInfoResponseDto{
					{
						Id:        0,
						Name:      "",
						CreatedAt: time.Time{},
						UpdatedAt: time.Time{},
					},
				},
			},
		},
		{
			Path:   "/create",
			Method: "POST",
			View:   CreateCat,
			Body: CreateCatDto{
				Name: "",
			},
			ResponseJson: CatInfoResponseDto{
				Id:        0,
				Name:      "",
				CreatedAt: time.Time{},
				UpdatedAt: time.Time{},
			},
		},
		{
			Path:   "/update",
			Method: "POST",
			View:   UpdateCat,
			Body: UpdateCatDto{
				Id:   0,
				Name: "",
			},
			ResponseJson: CatInfoResponseDto{
				Id:        0,
				Name:      "",
				CreatedAt: time.Time{},
				UpdatedAt: time.Time{},
			},
		},
		{
			Path:         "/delete",
			Method:       "POST",
			View:         DeleteCat,
			Body:         DeleteCatDto{Id: 0},
			ResponseJson: nil,
		},
	},
}
